home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / src / linux-headers-2.6.28-15 / include / linux / bitrev.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-12-24  |  270 b   |  17 lines

  1. #ifndef _LINUX_BITREV_H
  2. #define _LINUX_BITREV_H
  3.  
  4. #include <linux/types.h>
  5.  
  6. extern u8 const byte_rev_table[256];
  7.  
  8. static inline u8 bitrev8(u8 byte)
  9. {
  10.     return byte_rev_table[byte];
  11. }
  12.  
  13. extern u16 bitrev16(u16 in);
  14. extern u32 bitrev32(u32 in);
  15.  
  16. #endif /* _LINUX_BITREV_H */
  17.